Input

data class Input @JvmOverloads constructor(val image: File, val quadrangle: Quadrangle? = null, val rotationAngle: RotationAngle? = null)

A type that represents the input for an OCR operation. The quadrangle and rotation information are optional but generally obtained from ScanProcessor.Result.

Constructors

Link copied to clipboard
constructor(image: File, quadrangle: Quadrangle? = null, rotationAngle: RotationAngle? = null)

Properties

Link copied to clipboard
val image: File

The image to consider for text recognition, generally the original image

Link copied to clipboard
val quadrangle: Quadrangle? = null

The quadrangle that will be used to correct perspective on the image, before OCR is run

Link copied to clipboard

The rotation to apply to the image after the perspective correction